package com.hgxd.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 从机变量记录表
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
@Getter
@Setter
@TableName("rb_slave_history")
@ApiModel(value = "SlaveHistory对象", description = "从机变量记录表")
public class SlaveHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("记录id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("从机id")
    private Integer slaveId;

    @ApiModelProperty("从机名称")
    private String slaveName;

    @ApiModelProperty("柜号")
    private String cntrNo;

    @ApiModelProperty("更新时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("A相电压")
    private String dyA;

    @ApiModelProperty("B相电压")
    private String dyB;

    @ApiModelProperty("C相电压")
    private String dyC;

    @ApiModelProperty("A相电流")
    private String dlA;

    @ApiModelProperty("B相电流")
    private String dlB;

    @ApiModelProperty("C相电流")
    private String dlC;

    @ApiModelProperty("AB线电压")
    private String xdyAb;

    @ApiModelProperty("BC线电压")
    private String xdyBc;

    @ApiModelProperty("AC线电压")
    private String xdyAc;

    @ApiModelProperty("A相电压谐波")
    private String dyxbA;

    @ApiModelProperty("B相电压谐波")
    private String dyxbB;

    @ApiModelProperty("C相电压谐波")
    private String dyxbC;

    @ApiModelProperty("A相电流谐波")
    private String dlxbA;

    @ApiModelProperty("B相电流谐波")
    private String dlxbB;

    @ApiModelProperty("C相电流谐波")
    private String dlxbC;

    @ApiModelProperty("总有功功率")
    private String ygglAll;

    @ApiModelProperty("A相有功功率")
    private String ygglA;

    @ApiModelProperty("B相有功功率")
    private String ygglB;

    @ApiModelProperty("C相有功功率")
    private String ygglC;

    @ApiModelProperty("总无功功率")
    private String wgglAll;

    @ApiModelProperty("总视在功率")
    private String szglAll;

    @ApiModelProperty("当前总有功电能")
    private Double ygdnAll;

    @ApiModelProperty("总尖有功电能")
    private String ygdnJian;

    @ApiModelProperty("总峰有功电能")
    private String ygdnFeng;

    @ApiModelProperty("总平有功电能")
    private String ygdnPing;

    @ApiModelProperty("总谷有功电能")
    private String ygdnGu;


}
